<?php
class UploadController extends CController
{
	public function actions()
	{
		return array(
				'upload'=>array(
						'class'=>'ext.xupload.actions.XUploadAction',
						'path' =>Yii::app() -> getBasePath() . "/pictures",
						'publicPath' => Yii::app() -> getBaseUrl() . "/protected/pictures",
				),
		);
	}
	
	public function actionIndex() {
		Yii::import("xupload.models.XUploadForm");
		$model = new XUploadForm;
		$this -> render('index', array('model' => $model, ));
	}
}